package cn.flyingroc.travelbook;

import android.view.View;
import android.webkit.WebView;
import android.widget.TextView;

public class UpdateWrapper {
	
    View base;
    WebView userIcon;
    TextView  updateBody, comment, timestamp;
    
    UpdateWrapper(View base) {
        this.base=base;
    }
    WebView getUserIcon() {
        if (userIcon == null) {
            userIcon = (WebView)base.findViewById(R.id.user_icon);
        }
        return userIcon;
    }
    
    TextView getUpdateBody() {
        if (updateBody == null) {
            updateBody = (TextView)base.findViewById(R.id.update_body);
        }
        return updateBody;
    }
    TextView getComment() {
        if (comment == null) {
        	comment = (TextView)base.findViewById(R.id.comment);
        }
        return comment;
    }
    TextView getTimestamp() {  
        if (timestamp == null) {  
            timestamp = (TextView)base.findViewById(R.id.timestamp);  
        }  
        return timestamp;  
    }
}
